package com.example.javaow.domain.entity;// package: com.example.demo.entity
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("device_group")
public class DeviceGroup {
    // id
    @TableId(value = "id"  ,type = IdType.AUTO)
    private Long id;
    @TableField(value = "name")
    private String name;
    @TableField(value = "group_number")
    private Integer groupNumber;
    @TableField(value = "parent_id")
    private Long parentId;
    @TableField(value = "description")
    private String description;
    @TableField(value = "status")
    private String status;
    //设备总数
    @TableField(value = "device_count")
    private Integer deviceCount;
    //开窗器开启数量
    @TableField(value = "device_open")
    private Integer deviceOpen;
    @TableField(value = "createtime")
    private LocalDateTime createtime;
    @TableField(value = "updatetime")
    private LocalDateTime updatetime;
}